// pages/index/business/bankDetail/index.js
import { getExpert } from  "../../../../utils/api/module/cylm";
Page({
    data: {
        titleBarHeight: 0,
        statusBarHeight: 0,
        curentData: {}
    },
    onLoad: function (options) {
        let data = getApp().statusBarHeight;
        this.setData({
            statusBarHeight: Number(data.statusBarHeight),
            titleBarHeight: data.system.indexOf('IOS') > -1 ? 48 : 44
        })
        this.data.id = options.id;
        this.getData();
    },
    getData: function() {
        getExpert({ id: this.data.id }).then(res => {
            this.setData({
                curentData: res.data.data
            });
        });
    },
    bindBack: function() {
        wx.navigateBack({
          delta: 1
        })
    }
})